// 引入koa-router
const Router = require('koa-router')
const router = new Router({ prefix:'/api/salary' })
const {getSalary,addSalary,delSalary,updateSalary,searchSalary,updateCmis} = require('../../controller/salary.controller')
// 获取工资条
router.get('/getsalary',getSalary)
// 增加工资条
router.post('/addsalary',addSalary)
// 删除工资条
router.post('/delsalary',delSalary)
// 修改工资条
router.post('/updatesalary',updateSalary)
// 搜索工资条
router.post('/searchsalary',searchSalary)
// 修改提成
router.post('/updatecmis',updateCmis)
module.exports = router